Accessibility
Home / DevNet / Central Development Center /
DevNet
Flash Communication Server Article
Icon or Spacer Icon or Spacer Icon or Spacer
 
Jonathan Duran
Developer Relations
Macromedia Central

 

Macromedia Central provides a safe environment for developers to deploy occasionally-connected applications. Using Macromedia Central, developers can create an application and give it away for free. Or they can sell it to end users using the Try/Buy framework that is part of Central.

In this article, I’ll give you a high-level overview of the different parts of Macromedia Central and how they work together. Much of the content from this article has been distilled from the SDK, so this also serves as a bit of a sneak peak. If you don't already know what Macromedia Central is, you may want to check out What is Macromedia Central? before reading this article.

Elements of Macromedia Central
Macromedia Central is composed of application elements that can send notifications between each other to provide end users with a customizable application environment. The following elements are the main user-facing parts of Macromedia Central:

  • The Application Window – The Application Window is the main window of Macromedia Central. The application window’s main area contains the current application. There is also a status bar at the bottom. The application window runs one application at a time, and the user can choose to open multiple application windows to use several applications at once.
  • The Console – The Console is a separate window that receives and tracks information from applications. The Console is composed of small info areas called Tiles. An application can have any number of Tiles. End users can control the Console, choosing to hide or show the entire Console or individual Tiles. The Console also displays a list (also called the Launcher) of a user’s favorite Central applications for quick access.
  • Agents - Agents are the data services of an application. They run in the background as invisible SWFs. Agents monitor data, can provide notices to the user, and can inform the application or tiles of changes. An end user can choose to disable or enable Agents.
  • Notices - Notices occasionally appear on a user's display as messages from Macromedia Central applications. Applications, Tiles, or Agents running the background generate Notices. A summary of recent Notices can also be displayed in the Console. A user controls Notices, and he or she can customize their frequency through preference settings.

In addition Central will include an application finder (shown below), which will make it easy for end users to find and install applications within the Central interface.

 
Figure 1. The Macromedia Central application finder and console
 

Building a Macromedia Central Application
Macromedia Central will include an API with methods and properties for each of the elements described above. All the ActionScript comprising the API will be included with documentation in the Macromedia Central Developer SDK. With the SDK, developers will be able to create applications that take advantage of the desktop application environment while accessing data through the web when the user is connected.

The API provides built-in methods for sending messages between the different elements of Macromedia Central. It also includes event handlers for critical application states, such as opening the application, closing the application, and detecting a connection.

Deploying a Macromedia Central Application
Once an application is built and tested, a developer can make it available for download. Macromedia Central provides a format and system for packaging and distributing custom applications.

First, the developer packages the finished application for installation. This process includes listing all of the information about the application in a "Product Descriptor" XML file. The developer can place the XML file anywhere within the same domain as the application.

Next, the developer obtains a product ID for their application from Macromedia. This unique ID is used to identify and manage the application in the Macromedia Central environment.

Finally, the developer posts the application on a website for download. The download is enabled using an install library included in the Macromedia Central Developer SDK. Macromedia Flash Player 6, which contains the environment to enable this installation process, is already distributed to hundreds of millions of users. Currently, the player required to enable installation of Central applications is version 6,0,41,0.

Once the application is packaged and available for download, it can then appear in the Application Finder within Macromedia Central. End users can then browse, download, and purchase your application.

Getting Money for Your Work
Macromedia Central will also allow developers and companies to be compensated for their applications—all within the Central environment. With Macromedia Central, developers now have the option to charge end users for custom applications.

Macromedia will provide a complete Try/Buy transaction infrastructure within the Central environment, so individual developers and publishers will not need to each set up their own billing and tracking systems independently. We will announce specifics about our transaction structure and services in the coming weeks.

This framework allows end users to download any Central application they want on a trial basis. After a certain number of days (determined by the developer in the XML descriptor file), the application will time out, giving the end user a choice—to purchase the application or discontinue using it.

 
Figure 2. The Try/Buy dialog built into Central.
 

If the user decides to purchase the application, the entire transaction will be handled through the Macromedia Central web service, and the funds will be deposited into the developer’s online payment service account.

The result of the built-in Try/Buy framework is a mutually safe e-commerce environment for developers to sell applications and for users to buy them. The user has a secure environment to purchase applications with an online credit card transaction. The developer has a safe means of marketing applications and accepting payment for them.

Getting Started Now
So, what can you do to get started before the SDK is released? There are only a few key differences between developing traditional Macromedia Flash applications and Central applications. Applications for Central are developed using Macromedia Flash MX, so there's no need to purchase additional development software. By following a few development conventions, it should be pretty easy to start developing now, or to port existing applications over to Central.

  • Don’t use _root. Your SWF application will be loading into the Central environment, which means it will not be the top-level SWF. Use relative paths like _parent instead.
  • Use _global carefully. You can't guarantee that your app will be the only one running (and writing to the _global scope). Each domain, or website, that provides Central applications will have its own _global space. To avoid colliding with your other applications, declare a global object specific to each application, such as _global.myFirstApplication and _global.mySecondAppliction, for separate applications that will be running in Central.
  • Don’t assume the user has an Internet connection. You’ll need to code your application so that it doesn’t depend on an Internet connection. There will be onConnect and onDisconnect events that you will be able to use. In the interim, put any connection specific code into functions that can be called conditionally.

In addition, when the SDK is released it will include some Central-specific components that will conform to the UI of the Central environment. These are based on the standard Flash UI components and can be switched out with the components in the application you have currently developed. We recommended that applications running in Central use the SDK components in order to make the end user's experience consistent between applications in Central.

 
---------------------------------------------------------------------------------------------------------------------

About the author
Jonathan Duran has been working at Macromedia for three years and currently provides developer support and relations for Macromedia Central. Jonathan likes working with Macromedia Flash, ColdFusion, JavaScript, and doing graphic design, but prefers backpacking in the Yosemite wilderness, writing music, or feeding catnip to his cats.